package thread;



public class ThreadA extends Thread {
    private MyObject object;

    public ThreadA(MyObject object) {
        this.object = object;
    }

    @Override
    public void run() {
        object.method2();
        object.method();

        //object.method3("a");
    }
}
